<?php

namespace app\teacher\model;

use think\Model;

class CourseCommentTag extends Model
{
    /**
     * 获取课程标签
     */
    public static function getByCourseId($courseCommentIds)
    {
        $tagId = self::whereIn('course_comment_id', $courseCommentIds)->column('tag_id');
        return $tagId ? array_values(array_unique($tagId)) : [];
    }
}
